--[[/**
-- *
-- *
-- */]]

---@class BuffEffect274103 : BaseBuffEffect
BuffEffect274103 = ClientFight.CreateClass("BuffEffect274103", ClientFight.BaseBuffEffect)
local t = BuffEffect274103

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local fighter = buff.target;
    if not table.contains(fighter.parametersByObject, SkillEffect274101.SKILL_EFFECT_274101_OLD_POS) then
        return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
    end

    local oldPos = fighter.parametersByObject[SkillEffect274101.SKILL_EFFECT_274101_OLD_POS];
    fighter.position.x = (oldPos.x);
    fighter.position.y = (oldPos.y);
    local commentInfo = ReportManager.changePointToJsonString(fight, buff.target, 0, nil);
    table.insert(fight.actions, commentInfo);
    FightManager.playActions(commentInfo);
    SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]%s触发%s回到原点%s",
            fight.frame, fighter.fighterId, buff.modelId, oldPos
    ));
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()